import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/myClient' };
export default {
  path: '/myClient',
  meta: {
    ...meta,
    icon: 'setting',
    title: '我的客户',
  },
  component: Layout,
  children: ((basePath) => [
    {
      path: `${basePath}/newcustomerlist`,
      component: _import('myClient/newcustomerList'),
      name:'newcustomerList',
      meta: {
        ...meta,
        title: '新进客户',
      },
    },
    {
      path: `${basePath}/movecustomerlist`,
      component: _import('myClient/movecustomerList'),
      name:'movecustomerList',
      meta: {
        ...meta,
        title: '移出客户',
      },
    },
    {
      path: `${basePath}/loanUser`,
      component: _import('myClient/loanUser'),
      name:'loanUser',
      meta: {
        ...meta,
        title: '有贷户',
      },
    },
    {
      path: `${basePath}/noLoanUser`,
      component: _import('myClient/noLoanUser'),
      name:'noLoanUser',
      meta: {
        ...meta,
        title: '无贷户',
      },
    },
    {
      path: `${basePath}/companyUser`,
      component: _import('myClient/companyUser'),
      name:'companyUser',
      meta: {
        ...meta,
        title: '公司新增客户数',
      },
    },
    {
      path: `${basePath}/MessageReminder`,
      component: _import('myClient/MessageReminder'),
      name:'MessageReminder',
      meta: {
        ...meta,
        title: '消息提醒',
      },
    },
    {
      path: `${basePath}/institutionList`,
      component: _import('myClient/institutionList'),
      name:'institutionList',
      meta: {
        ...meta,
        title: '机构信息查询',
      },
    },
  ])('/myClient'),
};
